#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));    ///< Для строковых констант
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));        ///< Для функций перевода tr()
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    MainWindow w;
    QObject::connect(&a, SIGNAL(focusChanged(QWidget*, QWidget*)), &w, SLOT(setWidgets(QWidget*, QWidget*)));
    w.show();

    return a.exec();
}
